package objects;

public class References {

	public static void main(String[] args) {
		Cat c1,c2,c3,c4;
		c1 = new Cat();
		c3 = new Cat();
		c2 = c1;
		c4 = c3;
		c1 = c4;
		c4 = c2;
		if (c1 == c2) 
			System.out.println("c1 == c2");
		
		if (c1 == c3) 
			System.out.println("c1 == c3");
		int i;
		System.out.println(c1 == c3 ? (i=1) : (i=2));
		System.out.println(i);
	}
	
	static class Cat {
		
	}
	
	static interface A {
		
	}
	
	static interface B extends A {
		
	}
}
